/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import java.util.ArrayList;
import java.util.Iterator;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class TextBookVersionVoEntity implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<TextBookVersionVoEntity> CREATOR = new Creator();
    @NotNull
    private final ArrayList<TextBookVoEntity> textbookVoList;
    private final int versionId;
    @NotNull
    private final String versionName;

    /* compiled from: VideoTextBookEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<TextBookVersionVoEntity> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final TextBookVersionVoEntity createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            int readInt = parcel.readInt();
            String readString = parcel.readString();
            int readInt2 = parcel.readInt();
            ArrayList arrayList = new ArrayList(readInt2);
            for (int i2 = 0; i2 != readInt2; i2++) {
                arrayList.add(TextBookVoEntity.CREATOR.createFromParcel(parcel));
            }
            return new TextBookVersionVoEntity(readInt, readString, arrayList);
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final TextBookVersionVoEntity[] newArray(int i2) {
            return new TextBookVersionVoEntity[i2];
        }
    }

    public TextBookVersionVoEntity(int i2, @NotNull String versionName, @NotNull ArrayList<TextBookVoEntity> textbookVoList) {
        Intrinsics.checkNotNullParameter(versionName, "versionName");
        Intrinsics.checkNotNullParameter(textbookVoList, "textbookVoList");
        this.versionId = i2;
        this.versionName = versionName;
        this.textbookVoList = textbookVoList;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ TextBookVersionVoEntity copy$default(TextBookVersionVoEntity textBookVersionVoEntity, int i2, String str, ArrayList arrayList, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            i2 = textBookVersionVoEntity.versionId;
        }
        if ((i3 & 2) != 0) {
            str = textBookVersionVoEntity.versionName;
        }
        if ((i3 & 4) != 0) {
            arrayList = textBookVersionVoEntity.textbookVoList;
        }
        return textBookVersionVoEntity.copy(i2, str, arrayList);
    }

    public final int component1() {
        return this.versionId;
    }

    @NotNull
    public final String component2() {
        return this.versionName;
    }

    @NotNull
    public final ArrayList<TextBookVoEntity> component3() {
        return this.textbookVoList;
    }

    @NotNull
    public final TextBookVersionVoEntity copy(int i2, @NotNull String versionName, @NotNull ArrayList<TextBookVoEntity> textbookVoList) {
        Intrinsics.checkNotNullParameter(versionName, "versionName");
        Intrinsics.checkNotNullParameter(textbookVoList, "textbookVoList");
        return new TextBookVersionVoEntity(i2, versionName, textbookVoList);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TextBookVersionVoEntity)) {
            return false;
        }
        TextBookVersionVoEntity textBookVersionVoEntity = (TextBookVersionVoEntity) obj;
        return this.versionId == textBookVersionVoEntity.versionId && Intrinsics.areEqual(this.versionName, textBookVersionVoEntity.versionName) && Intrinsics.areEqual(this.textbookVoList, textBookVersionVoEntity.textbookVoList);
    }

    @NotNull
    public final ArrayList<TextBookVoEntity> getTextbookVoList() {
        return this.textbookVoList;
    }

    public final int getVersionId() {
        return this.versionId;
    }

    @NotNull
    public final String getVersionName() {
        return this.versionName;
    }

    public int hashCode() {
        return (((this.versionId * 31) + this.versionName.hashCode()) * 31) + this.textbookVoList.hashCode();
    }

    @NotNull
    public String toString() {
        return "TextBookVersionVoEntity(versionId=" + this.versionId + ", versionName=" + this.versionName + ", textbookVoList=" + this.textbookVoList + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        out.writeInt(this.versionId);
        out.writeString(this.versionName);
        ArrayList<TextBookVoEntity> arrayList = this.textbookVoList;
        out.writeInt(arrayList.size());
        Iterator<TextBookVoEntity> it = arrayList.iterator();
        while (it.hasNext()) {
            it.next().writeToParcel(out, i2);
        }
    }
}